package edu.gdpu.memory.stack;

/**
 * @author mazebin
 * @date 2021年 07月14日 17:08:17
 * 演示CPU占用率过高
 */
public class CPUUseTooHighTest {
    public static void main(String[] args) {
      new Thread(null,(()->{
          System.out.println("1....");
          while (true){

          }
      }),"thread1").start();
        new Thread(null,(()->{
            System.out.println("2....");
            try {
                Thread.sleep(1000000L);
            }catch ( Exception  e){
               e.printStackTrace();
            }
        }),"thread2").start();
        new Thread(null,(()->{
            System.out.println("3....");
            try {
                Thread.sleep(1000000L);
            }catch ( Exception  e){
                e.printStackTrace();
            }
        }),"thread3").start();

    }
}
